USE [OHNEW]
GO

/****** Object:  Table [dbo].[P_Area]    Script Date: 11/20/2012 22:59:45 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[P_Area]') AND type in (N'U'))
DROP TABLE [dbo].[P_Area]

GO
/****** Object:  Table [dbo].[P_Area]    Script Date: 11/20/2012 21:25:34 ******/
SET ANSI_NULLS OFF
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING OFF
GO

CREATE TABLE [dbo].[P_Area](
	[ID] [dbo].[udtID] NOT NULL,
	[Code] [dbo].[udtCODE] NOT NULL,
	[Name] [dbo].[udtNAME] NOT NULL,
	[Used] [dbo].[udtBoolean] NOT NULL,
	[Disable] [dbo].[udtBoolean] NOT NULL,
 CONSTRAINT [pk_Area] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[P_Area] ADD  DEFAULT (0) FOR [Used]
GO

ALTER TABLE [dbo].[P_Area] ADD  DEFAULT (0) FOR [Disable]
GO



